package com.intelligent.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.intelligent.dto.PurchaseReturnAddDTO;
import com.intelligent.dto.PurchaseReturnQueryDTO;
import com.intelligent.pojo.PurchaseReturn;
import com.intelligent.vo.PurchaseReturnVO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 86188
* @description 针对表【purchase_return(采购退货表)】的数据库操作Service
* @createDate 2025-09-04 15:08:07
*/
public interface PurchaseReturnService extends IService<PurchaseReturn> {

    /**
     * 分页查询采购退货列表
     */
    IPage<PurchaseReturnVO> getPurchaseReturnPage(PurchaseReturnQueryDTO queryDTO);

    /**
     * 新增采购退货
     */
    boolean addPurchaseReturn(PurchaseReturnAddDTO addDTO);

    /**
     * 根据ID查询采购退货详情
     */
    PurchaseReturnVO getPurchaseReturnDetail(Integer id);

    /**
     * 更新采购退货
     */
    boolean updatePurchaseReturn(PurchaseReturnAddDTO updateDTO);
}
